/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import net.miginfocom.swing.MigLayout;

/**
 *
 * @author Ira
 */
public class DVDSearchView extends SearchField {
	
	private JTextField txtLenght = new JTextField(13);
	private JTextField txtType = new JTextField(13);
	private JLabel lblLenght = new JLabel("Durée");
	private JLabel lblType = new JLabel("Type de vidéo");
	
	public DVDSearchView() {
		this.setLayout(new MigLayout("insets 0 0 0 0"));
		
		this.add(this.lblLenght);
		this.add(this.txtLenght, "wrap");
		this.add(this.lblType);
		this.add(this.txtType, "wrap");
	}

	@Override
	public void reInit() {
		this.txtLenght.setText("");
		this.txtType.setText("");
	}
	
	public String getLenght() {
		return this.txtLenght.getText();
	}
	
	public String getType() {
		return this.txtType.getText();
	}
}
